all: clean wipe download

TARBALL = minipar-0.5-Linux32.tgz
TARBALL_URL = http://webdocs.cs.ualberta.ca/~lindek/minipar/$(TARBALL)
SOURCE_DIR = minipar_temp

include $(shell rospack find mk)/cmake.mk

download:
	wget --no-clobber $(TARBALL_URL)
	rm -rf minipar
	mkdir minipar
	cd minipar; tar -xzf ../$(TARBALL)

#minipar: download
#	mkdir include/minipar
#	mv include/*.h include/minipar
#	mkdir src
#	mv pdemo/pdemo.cpp src
#	patch src/pdemo.cpp < pdemo.patch 
#	rm -rf pdemo

wipe: clean
	rm -rf minipar bin build srv_gen